package com.cxria.pattern.responsibilityChain

class Women implements IWomen {

    int type = 0

    String request = ''

    Women(int type, String request) {
        this.type = type
        switch(this.type){
            case 1:
                this.request = "女儿的请求是:$request"
                break
            case 2:
                this.request = "妻子的请求是:$request"
                break
            case 3:
                this.request = "母亲的请求是:$request"
        }
    }

}
